import request from "@/utils/request";

export function list(params) {
  return request({
    url: "/orderLabel/list",
    method: "get",
    params
  });
}
export function addLabel(data) {
  return request({
    url: "/orderLabel/add",
    method: "post",
    data
  });
}
export function editLabel(data) {
  return request({
    url: "/orderLabel/edit",
    method: "post",
    data
  });
}
export function delLabel(params) {
  return request({
    url: "/orderLabel/del",
    method: "get",
    params
  });
}

// 选择用户
export function getMemberList(params) {
  return request({
    url: "/orderLabel/memberList",
    method: "get",
    params
  });
}

// 添加订单标签用户
export function addOrderLabelUser(data) {
  return request({
    url: "/orderLabel/addOrderLabelUserRelate",
    method: "post",
    data
  })
}

// 删除订单标签用户
export function delOrderLabelUser(data) {
  return request({
    url: "/orderLabel/delOrderLabelUserRelate",
    method: "post",
    data
  })
}